<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

use App\Models\Tag;

class TagMapping extends BaseModel
{
    public $timestamps = true;
    public $table = 'tag_mapping';

    public $fillable = [
        'object_id',
        'object_type',
        'tag_id',
    ];

    public function tag()
    {
        return $this->hasOne(Tag::class, 'id', 'tag_id');
    }

}